package com.rimi.service;

import com.rimi.bean.YqzcGoods;
import com.rimi.commons.CommonResult;
import com.rimi.model.dto.GoodsListDto;

import java.util.List;

/**
 * @author luka
 * @version V1.0
 * @date 2021 2021/7/5 0005 15:04
 */
public interface ShoppingTrolleyService {
    // 查询购物车商品
    List<GoodsListDto> findAllGoodsInShoppingTrolleyByUserId(Integer userId);

    // 添加商品到购物车
    CommonResult addGoodsToShoppingTrolley(Integer userId,Integer goodId, Integer count);

    CommonResult deleteGoodsInShoppingTrolleyByUserId(Integer userId, Integer goodId);

    CommonResult updateGoodsInShoppingTrolleyByUserId(Integer userId, Integer goodId, Integer count);
}
